<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2012 osCommerce

  Released under the GNU General Public License
*/

  $oscTemplate->buildBlocks();

  if (!$oscTemplate->hasBlocks('boxes_column_left')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }

  if (!$oscTemplate->hasBlocks('boxes_column_right')) {
    $oscTemplate->setGridContentWidth($oscTemplate->getGridContentWidth() + $oscTemplate->getGridColumnWidth());
  }
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>" />
<title><?php echo tep_output_string_protected($oscTemplate->getTitle()); ?></title>
<base href="<?php echo (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>" />
<link rel="stylesheet" type="text/css" href="ext/jquery/ui/redmond/jquery-ui-1.8.22.css" />
<link rel="stylesheet" type="text/css" href="css/css.css" />
<link rel="stylesheet" type="text/css" href="css/menu_2011.css" />
<link rel="stylesheet" type="text/css" href="css/jquery.bxslider.css" />
<link rel="stylesheet" type="text/css" href="css/imageflow.css" />
<link rel="Stylesheet" type="text/css" href="css/smoothDivScroll.css" />
<link rel="stylesheet" href="css/light.css" type="text/css" media="screen" />

<!--<script type="text/javascript" src="ext/jquery/jquery-1.8.0.min.js"></script>-->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"></script>
<script type="text/javascript" src="jvscripts/jquery-ui-1.8.23.custom.min.js" ></script>
<script type="text/javascript" src="ext/jquery/ui/jquery-ui-1.8.22.min.js"></script>

<script type="text/javascript" src="jvscripts/jquery.mousewheel.min.js" ></script>
<script type="text/javascript" src="jvscripts/jquery.kinetic.js" ></script>
<script type="text/javascript" src="jvscripts/jquery.smoothdivscroll-1.3-min.js"></script>


<script type="text/javascript" src="jvscripts/imageflow.packed.js"></script>
<script type="text/javascript" src="jvscripts/main.js"></script>
<script type="text/javascript" src="jvscripts/menu.js"></script>
<script type="text/javascript" src="jvscripts/jquery.bxslider.min.js"></script>
<script type="text/javascript" src="jvscripts/jquery.easing.min.js"></script>
<script type="text/javascript" src="jvscripts/jquery.lavalamp.min.js"></script>


<script type="text/javascript">
		$(function() {
			 $("#one,#two,#three,#four,#five,#six,#seven,#eight").lavaLamp({
				fx: "backout", 
				speed: 700
			 });
		});
</script>

<script type="text/javascript">
// fix jQuery 1.8.0 and jQuery UI 1.8.22 bug with dialog buttons; http://bugs.jqueryui.com/ticket/8484
if ( $.attrFn ) { $.attrFn.text = true; }
</script>

<style type="text/css">

		#makeMeScrollable
		{
			width:1019px;	
			height:60px;
			position: relative;
			float:left;			
			
			box-shadow: 0 0 0 1px #ccc;
			border: solid #fff 0.5px;
			background: #fff;
		}
		
		/* Replace the last selector for the type of element you have in
		   your scroller. If you have div's use #makeMeScrollable div.scrollableArea div,
		   if you have links use #makeMeScrollable div.scrollableArea a and so on. */
		#makeMeScrollable div.scrollableArea a
		{
			position: relative;
			float: left;
			margin: 0;
			padding: 0;
			/* If you don't want the images in the scroller to be selectable, try the following
			   block of code. It's just a nice feature that prevent the images from
			   accidentally becoming selected/inverted when the user interacts with the scroller. */
			-webkit-user-select: none;
			-khtml-user-select: none;
			-moz-user-select: none;
			-o-user-select: none;
			user-select: none;
		}
</style>


<?php
  if (tep_not_null(JQUERY_DATEPICKER_I18N_CODE)) {
?>
<script type="text/javascript" src="ext/jquery/ui/i18n/jquery.ui.datepicker-<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>.js"></script>
<script type="text/javascript">
$.datepicker.setDefaults($.datepicker.regional['<?php echo JQUERY_DATEPICKER_I18N_CODE; ?>']);
</script>
<?php
  }
?>

<script type="text/javascript" src="ext/jquery/bxGallery/jquery.bxGallery.1.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="ext/jquery/fancybox/jquery.fancybox-1.3.4.css" />
<script type="text/javascript" src="ext/jquery/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<link rel="stylesheet" type="text/css" href="ext/960gs/<?php echo ((stripos(HTML_PARAMS, 'dir="rtl"') !== false) ? 'rtl_' : ''); ?>960_24_col.css" />
<link rel="stylesheet" type="text/css" href="stylesheet.css" />
<?php echo $oscTemplate->getBlocks('header_tags'); ?>
</head>
<body>

<div id="bodyWrapper" class="container_<?php echo $oscTemplate->getGridContainerWidth(); ?>">

<?php require(DIR_WS_INCLUDES . 'header.php'); ?>

<div id="wrapper_main" style="float:left;">

<div class="banner" style="float:left;width:1010px; height:300px;margin-left:5px;display:inline;">
	<div class="slider" style="height:282px">					
		<ul id="sliderbx">
			<li>
				<img src="./imgs/20121205135749ALFMeQjMTy.jpg" alt="">
			</li>
			<li>
				<img src="./imgs/201301021453441BcqVYv59h.jpg" alt="">
			</li>
			<li>
				<img src="./imgs/20130102145251PPiJRmASDl.jpg" alt="">
			</li>
		</ul>
	</div>	
</div>

<div style="float:left; padding-top:0px;">
<div align="center">
<div id="makeMeScrollable">
	<?php
			$manufactures = tep_db_query("select manufacturers_id, manufacturers_name, manufacturers_image  from ". TABLE_MANUFACTURERS . " where manufacturers_image is not null");						
			$manufactures_list = '';
			while ($manufactory = tep_db_fetch_array($manufactures)) 
			{	
				$manufactures_list .= '<a href="'. tep_href_link(FILENAME_DEFAULT, 'manufacturers_id='. $manufactory['manufacturers_id'] ). '">';
				$manufactures_list .= '<img src="'. DIR_WS_IMAGES . $manufactory['manufacturers_image'] . '" alt="' . $manufactory['manufacturers_name'] .'" height="60px"/>' . "\n";								
				$manufactures_list .= '</a>';
			}
			
			echo $manufactures_list;
	?>	
</div>
</div>
</div>


<?php if ($category_depth == 'top' && isset($HomePage) && $HomePage == true) { ?>

<?php include(DIR_WS_MODULES . FILENAME_IMAGE_FLOW); ?>

<?php } ?>

<?php if ($category_depth != 'top' || !isset($HomePage) || $HomePage==false) { ?>

<div id="bodyContent" class="grid_<?php echo $oscTemplate->getGridContentWidth(); ?> <?php echo ($oscTemplate->hasBlocks('boxes_column_left') ? 'push_' . $oscTemplate->getGridColumnWidth() : ''); ?>">

<h1 class="title_pd">
	<?php echo $breadcrumb->trail(' &raquo; '); ?>
</h1>

<?php } 
else { ?>

<div id="bodyContent" style="margin-left:30px; margin-right:30px">

<?php } ?>


<?php /* 
<div class="ui-widget infoBoxContainer" style='padding-top:5px;'>
  <div class="ui-widget-header infoBoxHeading"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' &raquo; '); ?></div>
</div>
*/ ?>